package textrpg.guihandlers;

import java.awt.Color;
import java.awt.Font;
import java.io.IOException;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.SwingConstants;

public class GuiCoreInitializer {

    public static JTextArea consoleDisplay;
    public JScrollPane textArea;
    public JLabel gameLabel;

    public GuiCoreInitializer() throws IOException {
        gameLabel = new JLabel("RPG Console");
        consoleDisplay = new JTextArea("Welcome to (insert game name here)!\n\n", 30, 45);
        textArea = new JScrollPane(consoleDisplay);
        gameLabel.setFont(new Font("Dialog", 1, 36));
        
        consoleDisplay.setEditable(false);
        consoleDisplay.setBorder(BorderFactory.createLineBorder(Color.black));
        gameLabel.setHorizontalAlignment(SwingConstants.CENTER);
    }
}
